package com.ruoyi.demo.controller;


import com.ruoyi.common.core.domain.R;
import com.ruoyi.demo.domain.TbPremisesInfo;
import com.ruoyi.demo.service.TbPremisesInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("lou")
@RestController
@CrossOrigin
public class LouPanController {


    @Autowired
    TbPremisesInfoService tbPremisesInfoService;

    @RequestMapping("louList")
    public R list(){
        List<TbPremisesInfo> list = tbPremisesInfoService.selelouList();
        return R.ok(list);
    }


}
